import _object from "./object";
import _string from "./string";
import _array from "./array";
import _boolean from "./boolean";
import _integer from "./integer";
import _number from "./number";
import { DataPreview } from "@/enums/dataPreview";
const TYPE_NAME: { [key: string]: string } = {
	string: "字符串",
	number: "数值",
	object: "对象"
	// array: "数组"
};
//扩展类型
TYPE_NAME[DataPreview.video.type] = DataPreview.video.label;
TYPE_NAME[DataPreview.location.type] = DataPreview.location.label;
TYPE_NAME[DataPreview.img.type] = DataPreview.img.label;
TYPE_NAME[DataPreview.web.type] = DataPreview.web.label;
TYPE_NAME[DataPreview.file.type] = DataPreview.file.label;

const TYPE = {
	object: _object,
	string: _string,
	array: _array,
	boolean: _boolean,
	integer: _integer,
	number: _number,
	custom: { value: {}, attr: {} }
};

const TYPE_LIST: Select[] = [
	{ label: "BIT", value: "bit" },
	{ label: "BITX", value: "bitx" },
	{ label: "INT8", value: "int8" },
	{ label: "UINT8", value: "uint8" },
	{ label: "INT16", value: "int16" },
	{ label: "UINT16", value: "uint16" },
	{ label: "INT32", value: "int32" },
	{ label: "UINT32", value: "uint32" },
	{ label: "FLOAT", value: "float" },
	{ label: "STRING", value: "string" }
];
const UNIT_LIST: Select[] = [
	{ label: "纳克每升", value: "ppt" },
	{ label: "微克每升", value: "ppb" },
	{ label: "微西每厘米", value: "uS/cm" },
	{ label: "牛顿每库仑", value: "N/C" },
	{ label: "伏特每米", value: "V/m" },
	{ label: "滴速", value: "ml/min" },
	{ label: "血压", value: "mmHg" },
	{ label: "血糖", value: "mmol/L" },
	{ label: "毫米每秒", value: "mm/s" },
	{ label: "转每分钟", value: "turn/m" },
	{ label: "次", value: "count" },
	{ label: "档", value: "gear" },
	{ label: "步", value: "stepCount" },
	{ label: "标准立方米每小时", value: "Nm3/h" },
	{ label: "千伏", value: "kV" },
	{ label: "千伏安", value: "KVA" },
	{ label: "千乏", value: "kvar" },
	{ label: "微瓦每平方厘米", value: "uw/cm2" },
	{ label: "只", value: "只" },
	{ label: "相对湿度", value: "%RH" },
	{ label: "立方米每秒", value: "m³/s" },
	{ label: "公斤每秒", value: "kg/s" },
	{ label: "转每分钟", value: "r/min" },
	{ label: "吨每小时", value: "t/h" },
	{ label: "千卡每小时", value: "KCL/h" },
	{ label: "升每秒", value: "L/s" },
	{ label: "兆帕", value: "Mpa" },
	{ label: "立方米每小时", value: "m³/h" },
	{ label: "千乏时", value: "kvarh" },
	{ label: "千乏", value: "KVar" },
	{ label: "微克每升", value: "μg/L" },
	{ label: "千卡路里", value: "kcal" },
	{ label: "吉字节", value: "GB" },
	{ label: "兆字节", value: "MB" },
	{ label: "千字节", value: "KB" },
	{ label: "字节", value: "B" },
	{ label: "微克每平方分米每天", value: "μg/(d㎡·d)" },
	{ label: "百万分率", value: "ppm" },
	{ label: "像素", value: "pixel" },
	{ label: "照度", value: "Lux" },
	{ label: "重力加速度", value: "grav" },
	{ label: "分贝", value: "dB" },
	{ label: "百分比", value: "%" },
	{ label: "流明", value: "lm" },
	{ label: "比特", value: "bit" },
	{ label: "克每毫升", value: "g/mL" },
	{ label: "克每升", value: "g/L" },
	{ label: "毫克每升", value: "mg/L" },
	{ label: "微克每立方米", value: "μg/m³" },
	{ label: "毫克每立方米", value: "mg/m³" },
	{ label: "克每立方米", value: "g/m³" },
	{ label: "千克每立方米", value: "kg/m³" },
	{ label: "纳法", value: "nF" },
	{ label: "皮法", value: "pF" },
	{ label: "微法", value: "μF" },
	{ label: "法拉", value: "F" },
	{ label: "欧姆", value: "Ω" },
	{ label: "微安", value: "μA" },
	{ label: "毫安", value: "mA" },
	{ label: "千安", value: "kA" },
	{ label: "安培", value: "A" },
	{ label: "毫伏", value: "mV" },
	{ label: "伏特", value: "V" },
	{ label: "毫秒", value: "ms" },
	{ label: "秒", value: "s" },
	{ label: "分钟", value: "min" },
	{ label: "小时", value: "h" },
	{ label: "日", value: "day" },
	{ label: "周", value: "week" },
	{ label: "月", value: "month" },
	{ label: "年", value: "year" },
	{ label: "节", value: "kn" },
	{ label: "千米每小时", value: "km/h" },
	{ label: "米每秒", value: "m/s" },
	{ label: "秒", value: "″" },
	{ label: "分", value: "′" },
	{ label: "度", value: "°" },
	{ label: "弧度", value: "rad" },
	{ label: "赫兹", value: "Hz" },
	{ label: "微瓦", value: "μW" },
	{ label: "毫瓦", value: "mW" },
	{ label: "千瓦特", value: "kW" },
	{ label: "瓦特", value: "W" },
	{ label: "卡路里", value: "cal" },
	{ label: "千瓦时", value: "kW·h" },
	{ label: "瓦时", value: "Wh" },
	{ label: "电子伏", value: "eV" },
	{ label: "千焦", value: "kJ" },
	{ label: "焦耳", value: "J" },
	{ label: "华氏度", value: "℉" },
	{ label: "开尔文", value: "K" },
	{ label: "吨", value: "t" },
	{ label: "摄氏度", value: "°C" },
	{ label: "毫帕", value: "mPa" },
	{ label: "百帕", value: "hPa" },
	{ label: "千帕", value: "kPa" },
	{ label: "帕斯卡", value: "Pa" },
	{ label: "毫克", value: "mg" },
	{ label: "克", value: "g" },
	{ label: "千克", value: "kg" },
	{ label: "牛", value: "N" },
	{ label: "毫升", value: "mL" },
	{ label: "升", value: "L" },
	{ label: "立方毫米", value: "mm³" },
	{ label: "立方厘米", value: "cm³" },
	{ label: "立方千米", value: "km³" },
	{ label: "立方米", value: "m³" },
	{ label: "公顷", value: "h㎡" },
	{ label: "平方厘米", value: "c㎡" },
	{ label: "平方毫米", value: "m㎡" },
	{ label: "平方千米", value: "k㎡" },
	{ label: "平方米", value: "㎡" },
	{ label: "纳米", value: "nm" },
	{ label: "微米", value: "μm" },
	{ label: "毫米", value: "mm" },
	{ label: "厘米", value: "cm" },
	{ label: "分米", value: "dm" },
	{ label: "千米", value: "km" },
	{ label: "米", value: "m" }
];
export { TYPE, TYPE_NAME, TYPE_LIST, UNIT_LIST };
